<template>
  <div class="label-popup" :style="{ backgroundColor: color }">
    <span>{{ label }}</span>
  </div>
</template>

<script setup>
const props = defineProps({
  label: String,
  color: { type: String, default: '#ff0000' },
})
</script>

<style scoped>
.label-popup {
  padding: 8px 12px;
  border-radius: 4px;
  color: white;
  font-weight: 500;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}
</style>
